/*
 * File:    RenderInterface.java
 * Created: 04-Feb-2009
 * Version: $Id$
 *
 * COPYRIGHT (C) 2009, Bitgate Mobile, LLC.  All Rights Reserved.
 *
 * software@bitgatemobile.com
 */

package com.webplasm.render.tags;

import com.webplasm.context.RenderContext;
import com.webplasm.render.engine.RenderException;

/**
 * This interface class is used by renderable tags.  This function is an entry point used to render the contents
 * of a renderable tag, and return its contents to the <code>WrappedNode</code> rendering engine.
 * 
 * @author kenji
 * @since Webplasm 2.0
 */
public interface RenderInterface {
	/**
	 * Called to render the contents of a tag.
	 * 
	 * @param rContext The currently active <code>RenderContext</code> object.
	 * @return <code>StringBuffer</code> containing the data after parsing.
	 * @throws RenderException on any errors.
	 */
	public StringBuffer render(RenderContext rContext) throws RenderException;
}